
package cs.ohms.subsystem.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 */
@Repository
public interface PushHomeworkRepository extends JpaRepository<PushHomeworkEntity, Integer>, JpaSpecificationExecutor<PushHomeworkEntity> {
    Long countByHomework(HomeworkEntity homework);

    Optional<PushHomeworkEntity> findByStudentAndHomework_Id(StudentEntity student, Integer homework_id);
}
